package com.zl.gmadmin.controller;

import com.zl.gmadmin.common.ApiResponse;
import com.zl.gmadmin.service.SysJobService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhangliang
 * @version 1.0
 * @date 2021/3/22 10:05
 */
@RestController
@RequestMapping("/api/jobs")
@Api(tags = "系统:职位管理")
public class SysJobController {

    @Autowired
    private SysJobService jobService;

    @GetMapping("allName")
    @ApiOperation("获取工作职位信息")
    public ApiResponse jobs(){

        return ApiResponse.ofSuccess(jobService.findAllJobsName());
    }
}
